package com.flute.tools.timer;

/**
 * timer任务
 * @author Dave
 *
 */
public class Task {
	/**
	 * 任务的标志符
	 */
	private String id;
	/**
	 * 操作方法
	 */
	private ReflectionMethod method;
	/**
	 * timer时间间隔
	 */
	private long timerInterval;
	/**
	 * 操作用到的参数
	 */
	private Object parameter;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public long getTimerInterval() {
		return timerInterval;
	}

	public void setTimerInterval(long timerInterval) {
		this.timerInterval = timerInterval;
	}

	public Object getParameter() {
		return parameter;
	}

	public void setParameter(Object parameter) {
		this.parameter = parameter;
	}

	public ReflectionMethod getMethod() {
		return method;
	}

	public void setMethod(ReflectionMethod method) {
		this.method = method;
	}
}
